/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * pnlFiltro.java
 *
 * Created on 21-nov-2011, 0:13:46
 */
package Comun;

import Controlador.Controladores.FuenteTabla;

/**
 *
 * @author luisramirezmartinez
 */
public class pnlFiltro extends PanelRoundTranslucido {
    private FuenteTabla ft;
    private PanelRoundTranslucido hijo=null;
    /** Creates new form pnlFiltro */
    public pnlFiltro() {
        initComponents();
       
     
    }
    
    public void seleccionar_elementos(){
        
        
    
    }


    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblCampo2 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        cboreg2 = new Controlador.ComponentesCompuestos.ComboFuente();
        Cboreg1 = new Controlador.ComponentesCompuestos.ComboFuente();
        samiButton1 = new Comun.SamiButton();
        RadioO1 = new javax.swing.JRadioButton();
        RadioY1 = new javax.swing.JRadioButton();
        RadioY2 = new javax.swing.JRadioButton();
        RadioO2 = new javax.swing.JRadioButton();
        RadioActivos = new javax.swing.JRadioButton();
        RadioInactivos = new javax.swing.JRadioButton();
        RadioAmbos = new javax.swing.JRadioButton();
        chkorder = new javax.swing.JCheckBox();
        esigual1 = new javax.swing.JCheckBox();
        jSpinner1 = new javax.swing.JSpinner();
        lblcampo1 = new javax.swing.JLabel();
        chkesigual2 = new javax.swing.JCheckBox();
        jProgressBar1 = new javax.swing.JProgressBar();

        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblCampo2.setFont(new java.awt.Font("Lucida Grande", 0, 14));
        lblCampo2.setForeground(new java.awt.Color(255, 255, 255));
        lblCampo2.setText("Campo2");
        add(lblCampo2, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 10, -1, -1));

        jLabel2.setFont(new java.awt.Font("Lucida Grande", 0, 14));
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Cántidad de Registros");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, -1, -1));

        cboreg2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboreg2ActionPerformed(evt);
            }
        });
        cboreg2.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                cboreg2FocusGained(evt);
            }
        });
        add(cboreg2, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 30, 250, -1));

        Cboreg1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Cboreg1ActionPerformed(evt);
            }
        });
        Cboreg1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                Cboreg1FocusGained(evt);
            }
        });
        add(Cboreg1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 250, -1));

        samiButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_search 2.png"))); // NOI18N
        samiButton1.setText("Buscar");
        samiButton1.setMouseEntered(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_search.png"))); // NOI18N
        samiButton1.setMouseExited(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_search 2.png"))); // NOI18N
        samiButton1.setMousePressed(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_search.png"))); // NOI18N
        samiButton1.setMouseReleased(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/Iconos/SAMI_search 2.png"))); // NOI18N
        samiButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                samiButton1MouseClicked(evt);
            }
        });
        add(samiButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 100, 80, -1));

        RadioO1.setForeground(new java.awt.Color(255, 255, 255));
        RadioO1.setText("O");
        RadioO1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RadioO1ActionPerformed(evt);
            }
        });
        add(RadioO1, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 10, -1, -1));

        RadioY1.setForeground(new java.awt.Color(255, 255, 255));
        RadioY1.setSelected(true);
        RadioY1.setText("Y");
        RadioY1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RadioY1ActionPerformed(evt);
            }
        });
        add(RadioY1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 10, -1, -1));

        RadioY2.setForeground(new java.awt.Color(255, 255, 255));
        RadioY2.setSelected(true);
        RadioY2.setText("Y");
        RadioY2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RadioY2ActionPerformed(evt);
            }
        });
        add(RadioY2, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 10, -1, -1));

        RadioO2.setForeground(new java.awt.Color(255, 255, 255));
        RadioO2.setText("O");
        RadioO2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RadioO2ActionPerformed(evt);
            }
        });
        add(RadioO2, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 10, -1, -1));

        RadioActivos.setForeground(new java.awt.Color(255, 255, 255));
        RadioActivos.setSelected(true);
        RadioActivos.setText("Activos");
        add(RadioActivos, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 60, -1, -1));

        RadioInactivos.setForeground(new java.awt.Color(255, 255, 255));
        RadioInactivos.setText("Inactivos");
        add(RadioInactivos, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 100, -1, -1));

        RadioAmbos.setForeground(new java.awt.Color(255, 255, 255));
        RadioAmbos.setText("Ambos");
        add(RadioAmbos, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 80, -1, -1));

        chkorder.setForeground(new java.awt.Color(255, 255, 255));
        chkorder.setText("Ordenar por Clave");
        chkorder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkorderActionPerformed(evt);
            }
        });
        add(chkorder, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 80, -1, -1));

        esigual1.setForeground(new java.awt.Color(255, 255, 255));
        esigual1.setText("sea Igual");
        add(esigual1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 10, -1, -1));
        add(jSpinner1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 80, 80, -1));

        lblcampo1.setFont(new java.awt.Font("Lucida Grande", 0, 14));
        lblcampo1.setForeground(new java.awt.Color(255, 255, 255));
        lblcampo1.setText("Campo1");
        add(lblcampo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));

        chkesigual2.setForeground(new java.awt.Color(255, 255, 255));
        chkesigual2.setText("sea Igual");
        add(chkesigual2, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 10, -1, -1));
        add(jProgressBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 110, 160, -1));
    }// </editor-fold>//GEN-END:initComponents

    private void cboreg2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboreg2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cboreg2ActionPerformed

    private void Cboreg1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Cboreg1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Cboreg1ActionPerformed

    private void chkorderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkorderActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkorderActionPerformed

    private void samiButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_samiButton1MouseClicked
        this.setVisible(false);
        this.getHijo().setVisible(true);
    }//GEN-LAST:event_samiButton1MouseClicked

    private void RadioY1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RadioY1ActionPerformed
        this.RadioO1.setSelected(false);
        this.RadioY1.setSelected(true);
        this.getParent().repaint();
    }//GEN-LAST:event_RadioY1ActionPerformed

    private void RadioO1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RadioO1ActionPerformed
        this.RadioY1.setSelected(false);
        this.RadioO1.setSelected(true);
        this.getParent().repaint();
    }//GEN-LAST:event_RadioO1ActionPerformed

    private void RadioY2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RadioY2ActionPerformed
        this.RadioO2.setSelected(false);
        this.RadioY2.setSelected(true);
        this.getParent().repaint();
    }//GEN-LAST:event_RadioY2ActionPerformed

    private void RadioO2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RadioO2ActionPerformed
        this.RadioY2.setSelected(false);
        this.RadioO2.setSelected(true);
        this.getParent().repaint();
    }//GEN-LAST:event_RadioO2ActionPerformed

    private void Cboreg1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_Cboreg1FocusGained
        //this.getParent().repaint();
    }//GEN-LAST:event_Cboreg1FocusGained

    private void cboreg2FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_cboreg2FocusGained
       // this.getParent().repaint();
    }//GEN-LAST:event_cboreg2FocusGained

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private Controlador.ComponentesCompuestos.ComboFuente Cboreg1;
    private javax.swing.JRadioButton RadioActivos;
    private javax.swing.JRadioButton RadioAmbos;
    private javax.swing.JRadioButton RadioInactivos;
    private javax.swing.JRadioButton RadioO1;
    private javax.swing.JRadioButton RadioO2;
    private javax.swing.JRadioButton RadioY1;
    private javax.swing.JRadioButton RadioY2;
    private Controlador.ComponentesCompuestos.ComboFuente cboreg2;
    private javax.swing.JCheckBox chkesigual2;
    private javax.swing.JCheckBox chkorder;
    private javax.swing.JCheckBox esigual1;
    public javax.swing.JLabel jLabel2;
    private javax.swing.JProgressBar jProgressBar1;
    private javax.swing.JSpinner jSpinner1;
    public javax.swing.JLabel lblCampo2;
    public javax.swing.JLabel lblcampo1;
    private Comun.SamiButton samiButton1;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the ft
     */
    public FuenteTabla getFt() {
        return ft;
    }

    /**
     * @param ft the ft to set
     */
    public void setFt(FuenteTabla ft) {
        this.ft = ft;
    }

    /**
     * @return the hijo
     */
    public PanelRoundTranslucido getHijo() {
        return hijo;
    }

    /**
     * @param hijo the hijo to set
     */
    public void setHijo(PanelRoundTranslucido hijo) {
        this.hijo = hijo;
    }
}
